package com.zscat.mallplus.dms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zscat.mallplus.utils.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("dms_banner")
public class Banner extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 图片地址
     */
    @TableField("pic_url")
    private String picUrl;

    /**
     * 费用金额
     */
    @TableField("orderby")
    private Integer orderby;

    /**
     * 提交时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_datetime")
    private Date createDatetime;

    /**
     * 转向地址
     */
    @TableField("to_url")
    private String toUrl;

    /**
     * 是否做题页面banner
     */
    @TableField("is_zuoti")
    private Integer isZuoti;

    private Long storeId;
}
